﻿@using Models
@if(ViewBag.Categories != null)
{
    <span>News by category<br /></span>
foreach (Category cat in ViewBag.Categories)
{
    @Html.ActionLink(cat.Name, "Index", "Category", new { id = cat.Name },null)
    <br />
}
<br />
<br />
}
@if(ViewBag.Tags != null)
{
<span>News by tags.<br /></span>
foreach (Tag tag in ViewBag.Tags)
{
    <div id="onetag_left">
    @Html.ActionLink(tag.Name, "Index", "Tags", new { id = tag.Name },null)
    </div>
    <br />
}
}